package com.memory.modules.business.service.earn;

import com.memory.modules.business.domain.earn.CurDayPrice;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.Date;
import java.util.List;
import java.util.Optional;

public interface CurDayPriceService {
    CurDayPrice create(CurDayPrice price);

    CurDayPrice modify(Long id, CurDayPrice price);

    CurDayPrice remove(Long id);

    Optional<CurDayPrice> findById(Long id);

    CurDayPrice findByDate(Date date);

    Page<CurDayPrice> findPage(Example<CurDayPrice > example);

    List<CurDayPrice> findByAccountId(Long id);
}
